package com.ygg.bootservice.service;

import com.ygg.bootcommon.model.entity.Token;

import java.util.List;
import java.util.Map;
/**
 * create by: longyang
 * description: 令牌接口
 * create time: 2020/12/15 9:37
 */
public interface ITokenService {

    /**
     * 申请令牌
     * @param map
     * @return
     */
    public String getToken(Map<String,String> map) throws Exception;

    /**
     * 获取所有已经生成的令牌
     * @return
     */
    public List<Token> getAllToken(Map<String,String> map) throws Exception;

    /**
     * 更新令牌
     * @param map
     */
    public void updateToken(Map<String,String> map) throws Exception;
}
